package com.ruoyi.hr.service.impl.empinfo;

import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.hr.domain.Authority;
import com.ruoyi.hr.mapper.empinfo.RemindMapper;
import com.ruoyi.hr.service.empinfo.RemindService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class RemindServiceImpl extends BaseController implements RemindService {

    @Autowired
    RemindMapper remindMapper;

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public List<Map<String, Object>> contractNotSignedList(Map map, Authority authority) {
        return remindMapper.contractNotSignedList(map, authority);
    }

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public List<Map<String, Object>> contractWillExpireList(Map map, Authority authority) {
        return remindMapper.contractWillExpireList(map, authority);
    }

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public List<Map<String, Object>> contractExpiredList(Map map, Authority authority) {
        return remindMapper.contractExpiredList(map, authority);
    }

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public List<Map<String, Object>> contractUrgentList(Map map, Authority authority) {
        return remindMapper.contractUrgentList(map, authority);
    }

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public List<Map<String, Object>> trialWillExpiretList(Map map, Authority authority) {
        return remindMapper.trialWillExpiretList(map, authority);
    }

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public List<Map<String, Object>> trialExpiredList(Map map, Authority authority) {
        return remindMapper.trialExpiredList(map, authority);
    }

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public List<Map<String, Object>> internshipWillExpireList(Map map, Authority authority) {
        return remindMapper.internshipWillExpireList(map, authority);
    }

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public List<Map<String, Object>> internshipExpireList(Map map, Authority authority) {
        return remindMapper.internshipExpireList(map, authority);
    }

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public List<Map<String, Object>> certificatesWillExpireList(Map map, Authority authority) {
        return remindMapper.certificatesWillExpireList(map, authority);
    }

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public List<Map<String, Object>> certificatesExpireList(Map map, Authority authority) {
        return remindMapper.certificatesExpireList(map, authority);
    }

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public List<Map<String, Object>> todayBirthdayList(Map map, Authority authority) {
        return remindMapper.todayBirthdayList(map, authority);
    }
}
